package com.hrm.service.wxd;

import com.hrm.dao.wxd.NoticeMapper;
import com.hrm.entity.Notice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Miller
 */
@Service("noticeService")
public class NoticeServiceImpl implements NoticeService {

    @Autowired
    private NoticeMapper noticeMapper;

    /**
     * 查询所有公告
     * @param notice
     * @return
     */
    @Override
    public List<Notice> selectAll(Notice notice) {
        return noticeMapper.selectAllNotice(notice);
    }

    /**
     * 添加公告
     * @param notice
     * @return
     */
    @Override
    public int addNoticeInfo(Notice notice) {
        return noticeMapper.addNotice(notice);
    }

    /**
     * 删除公告
     * @param id
     * @return
     */
    @Override
    public int deleteNoticeInfo(Integer id) {
        return noticeMapper.deleteNoticeInfo(id);
    }

    /**
     * 批量删除
     * @param productId
     */



    /**
     * 修改公告
     * @param notice
     * @return
     */
    @Override
    public int updateNoticeInfo(Notice notice) {
        return noticeMapper.updateNoticeInfo(notice);
    }



}
